var userService = (function () {
    function userService(http, route) {
        this.http = http;
        this.route = route;
    }
    userService.prototype.getList = function (keyWord, carCode, startTime, endTime, roleId, state, useCache, skip, count) {
        return this.http({
            method: "GET",
            url: this.route.getUrl("users?keyWord={{keyWord}}&carCode={{carCode}}&startTime={{startTime}}&endTime={{endTime}}&roleId={{roleId}}&state={{state}}&useCache={{useCache}}&skip={{skip}}&count={{count}}", {
                keyWord: keyWord,
                carCode: carCode,
                startTime: startTime,
                endTime: endTime,
                roleId: roleId,
                state: state,
                useCache: useCache,
                skip: skip,
                count: count
            })
        });
    };
    userService.prototype.getDetail = function (userId) {
        return this.http({
            method: "GET",
            url: this.route.getUrl("users/{{user_id}}", {
                user_id: userId
            })
        });
    };
    userService.prototype.setAccountLockoutState = function (userId, disabled) {
        return this.http({
            method: "GET",
            url: this.route.getUrl("users/{{userId}}/enabled?disabled={{disabled}}", {
                userId: userId,
                disabled: disabled
            })
        });
    };
    userService.prototype.putUserRealNameCertificationStatus = function (userId, carCode, drivingLincenseKeyStatus, idCardKeyStatus, realHeadKeyStatus, vehicleLicenseKeyStatus) {
        return this.http({
            method: "PUT",
            url: this.route.getUrl("users/{{userId}}", {
                userId: userId
            }),
            data: {
                carCode: carCode,
                drivingLincenseKeyStatus: drivingLincenseKeyStatus,
                idCardKeyStatus: idCardKeyStatus,
                realHeadKeyStatus: realHeadKeyStatus,
                vehicleLicenseKeyStatus: vehicleLicenseKeyStatus
            }
        });
    };
    return userService;
}());
///**
//* Config
//*/
//var moduleName = 'angularUtils.userService';
//var DEFAULT_ID = '__default';
///**
// * Module
// */
//var module;
//try {
//    module = angular.module(moduleName);
//} catch (err) {
//    // named module does not exist, so create one
//    module = angular.module(moduleName, []);
//}
app.service("userService", ['$http', 'routeService', userService]);
